package com.hhw.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hhw.entity.Customer;
import com.hhw.mapper.CustomerMapper;


@Service
@Transactional
public class CustomerServiceImp implements CustomerService{
	//注入dao
	@Autowired
private CustomerMapper customerMapper;


	@Override
	public List<Customer> selectAllCustomer() {
		return this.customerMapper.selectAllCustomer();
	}


	@Override
	public Customer SelectCustomerById(Integer id) {
		return this.customerMapper.SelectCustomerById(id);
 
	}


	@Override
	public boolean updateCustomer(Customer customer) {
		boolean result= this.customerMapper.updateCustomer(customer);
		return result;
	}
	
	
	
	



	
	
	}

